package com.omega.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.omega.dao.ItemDenominationDao;
import com.omega.entity.ItemDenomination;

@Repository
public class ItemDenominationDaoImpl extends GenericDaoImpl<ItemDenomination>
		implements ItemDenominationDao {

	public ItemDenominationDaoImpl() {
		super();
		setClazz(ItemDenomination.class);
	}

	@Override
	public void addDenomination(ItemDenomination itemDenomination) {
		save(itemDenomination);
	}

	@Override
	public List<ItemDenomination> listAllDenomination() {
		return loadAll();
	}

	@Override
	
	public ItemDenomination loadById(long denominationId) {
		return loadByid(denominationId);
	}

	@Override
	public void updateDenomination(ItemDenomination denomination) {
		update(denomination);

	}

}
